import request from '@/utils/request'

// 查询发票夹列表
export function listExpenseInvoiceFolder(query) {
  return request({
    url: '/folder/expenseInvoiceFolder/list',
    method: 'get',
    params: query
  })
}

// 查询发票夹详细
export function getExpenseInvoiceFolder(id) {
  return request({
    url: '/folder/expenseInvoiceFolder/' + id,
    method: 'get'
  })
}

// 保存发票夹
export function saveExpenseInvoiceFolder(data) {
  return request({
    url: '/folder/expenseInvoiceFolder/save',
    method: 'post',
    data: data
  })
}

// 删除发票夹
export function delExpenseInvoiceFolder(id) {
  return request({
    url: '/folder/expenseInvoiceFolder/' + id,
    method: 'delete'
  })
}

// 导出发票夹
export function exportExpenseInvoiceFolder(query) {
  return request({
    url: '/folder/expenseInvoiceFolder/export',
    method: 'get',
    params: query
  })
}
